package net.oschina.bilbodai.common.retrofitor.support;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author daimao  Date: 16/4/14 Time: 下午6:24
 * @version $Id$
 */
@RestController
public class FooTestController {

    @RequestMapping("/hello")
    public String hello(@RequestParam(defaultValue = "World")String word) {
        return "hello " + word;
    }

    @RequestMapping("/foo")
    public Foo foo() {
        return new Foo("foo",110);
    }


}